package slim3.demo.controller;

import java.util.logging.Logger;

import org.mobylet.core.Carrier;
import org.mobylet.core.Mobylet;
import org.mobylet.core.MobyletFactory;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class IndexController extends Controller {

    @SuppressWarnings("unused")
    private static final Logger logger =
        Logger.getLogger(IndexController.class.getName());

    @Override
    public Navigation run() {
        Mobylet mobylet = MobyletFactory.getInstance();
        Carrier carrier = mobylet.getCarrier();
        switch (carrier) {
        case DOCOMO:
            //ドコモ端末の場合の処理
            break;
        case AU:
            //au端末の場合の処理
            break;
        case SOFTBANK:
            //ソフトバンク3G端末の場合の処理
            break;
        case OTHER:
            //PC若しくは上記以外の端末の場合の処理
            break;
    }
        
        return forward("pages/user/index.jsp");
    }
}
